package com.itheima.store.domain;

import java.sql.Date;

/**
 * 用户模块的实体类：
 * @author admin
 *create table user
(
   user_id              varchar(100) not null,
   user_name            varchar(100),
   user_account         varchar(100),
   user_password        varchar(100),
   user_sex             varchar(1),
   user_dept_id         varchar(100),
   user_position_id     varchar(100),
   user_phone           varchar(11),
   isadmin              varchar(1),
   isforbidden          varchar(1),
   createTime           datetime,
   createPerson_id      varchar(100),
   createPerson_name    varchar(100),
   primary key (user_id)
);
 */
public class User {
	private String user_id;
	private String user_name;
	private Integer user_account;
	private String user_password;
	private String user_sex;
	private Dept dept;
	private Post post;
	private String user_phone;
	private String isadmin;//0 普通用户  1管理员
	private String isforbidden;//0 表示未锁定 1 锁定默认为0
	private String code;//激活码
	private Date createTime ;//用户生成的时间
	private User user ;
	private String user_new_password;
	private String createPerson_id;//创建人ID
	private String createPerson_name;//创建人名字
	
	
	public String getCreatePerson_id() {
		return createPerson_id;
	}
	public void setCreatePerson_id(String createPerson_id) {
		this.createPerson_id = createPerson_id;
	}
	public String getCreatePerson_name() {
		return createPerson_name;
	}
	public void setCreatePerson_name(String createPerson_name) {
		this.createPerson_name = createPerson_name;
	}
	public Post getPost() {
		return post;
	}
	public void setPost(Post post) {
		this.post = post;
	}
	public String getUser_new_password() {
		return user_new_password;
	}
	public void setUser_new_password(String user_new_password) {
		this.user_new_password = user_new_password;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	
	public Integer getUser_account() {
		return user_account;
	}
	public void setUser_account(Integer user_account) {
		this.user_account = user_account;
	}
	public String getUser_password() {
		return user_password;
	}
	public void setUser_password(String user_password) {
		this.user_password = user_password;
	}
	public String getUser_sex() {
		return user_sex;
	}
	public void setUser_sex(String user_sex) {
		this.user_sex = user_sex;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public String getUser_phone() {
		return user_phone;
	}
	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}
	public String getIsadmin() {
		return isadmin;
	}
	public void setIsadmin(String isadmin) {
		this.isadmin = isadmin;
	}
	public String getIsforbidden() {
		return isforbidden;
	}
	public void setIsforbidden(String isforbidden) {
		this.isforbidden = isforbidden;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "User [user_id=" + user_id + ", user_name=" + user_name + ", user_account=" + user_account
				+ ", user_password=" + user_password + ", user_sex=" + user_sex + ", user_phone=" + user_phone
				+ ", isadmin=" + isadmin + ", isforbidden=" + isforbidden + ", code=" + code + ",  createTime=" + createTime + "]";
	}
	
	
	
}